﻿package com.yy.ui.controls {
    import com.greensock.TweenLite;
    import com.yy.ui.general.ScaleDisplayObject;
    
    import flash.display.*;

    public class ScaleButton extends Button {

        public function ScaleButton(_arg1:Object=null){
            super(_arg1);
        }
        override protected function set background(_arg1:DisplayObject):void{
            super.background = new ScaleDisplayObject(_arg1);
        }
        override protected function mouseOver():void{
            if (enable){
                TweenLite.to(super.background, 0.4, {
                    scaleX:1.2,
                    scaleY:1.2
                });
            };
        }
        override protected function mouseOut():void{
            TweenLite.to(super.background, 0.4, {
                scaleX:1,
                scaleY:1
            });
        }
        override protected function mouseDown():void{
        }
        override protected function mouseUp():void{
        }

    }
}